<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<%-- <script type="text/javascript" src="${res}/js/jquery/jquery.js"></script> --%>
<%-- <link href="${res }/css/public.css" rel="stylesheet" type="text/css" /> --%>
<%-- <link href="${res}/css/information.css" rel="stylesheet" type="text/css" /> --%>
<style type="text/css">
.project_box01{ float:left;  width:49%; }
.project_box02{ float:right; width:49%;}
</style>
<script type="text/javascript">
	function nTabs(thisObj, Num) {
		if (thisObj.className == "active")
			return;
		var tabObj = thisObj.parentNode.id;
		var tabList = document.getElementById(tabObj)
				.getElementsByTagName("li");
		for (i = 0; i < tabList.length; i++) {
			if (i == Num) {
				thisObj.className = "active";
				document.getElementById(tabObj + "_Content" + i).style.display = "block";
			} else {
				tabList[i].className = "normal";
				document.getElementById(tabObj + "_Content" + i).style.display = "none";
			}
		}
	}
</script>

<script type="text/javascript">
	$(document).ready(function(){
		
		$("#right").scroll(function () {
			//var left = document.getElementById("left");
			//var right = document.getElementById("right");
			//left.scrollTop = right.scrollTop;
		});
		$("#left").scroll(function () {
			/* var left = document.getElementById("left");
			var right = document.getElementById("right");
			right.scrollTop = left.scrollTop; */
		});
		
		$(".sameStr").click(function(){
		
			var tempValue=$("#tempName").val();
			//清除上次保留的颜色
			if(tempValue !=""){
				$("span[id="+tempValue+"_0]").attr("style","color: #FF0000;  background-color: #FFFFFF");
				$("span[id="+tempValue+"]").attr("style","color: #FF0000;  background-color: #FFFFFF");
			}
			
			var sameStr=this.attributes["href"].value;
			var value=sameStr.split("#")[1];
			$("span[id="+value+"_0]").attr("style","color: #000000;  background-color: #FFFF00");
			$("span[id="+value+"]").attr("style","color: #000000;  background-color: #FFFF00");
			//记住本次操作的id
			$("#tempName").val(value);
		});

		if($.browser.msie )
			$(".project_box01,.project_box02").css("width","45%");
	});
	</script>

</head>

<body>
	<div style="width: 970px; position: absolute; left: 50%; margin-left: -485px; ">
		<!--<div class="win_title"><a href="#" class="btn_close" title="关闭窗口"></a>相似结果查看</div>-->
		<input type="hidden" id="tempName" />
		<div class="win_main" style="padding:20px; overflow:hidden;padding-top:0px;">
			<%-- <div class="contrast_tit">
				相似结果查看 (相似度<span style="color:red"><fmt:formatNumber value="${result.cmp_result*100 }" pattern="##.##"/>%</span>)
			</div> --%>
			<div class="project_box01">
				<div class="project01">项目一</div>
				<div class="project_analysis">
					<table class="t_css" width="100%" border="0" cellpadding="0"
						cellspacing="1">
						<tr class="li_1">
							<td width="18%" align="right">项目名称：</td>
							<td colspan="3" align="left">${proposal.zhTitle }</td>
						</tr>
						<tr class="li_2">
							<td align="right" width="18%" >申报单位：</td>
							<td colspan="3" align="left">${org.name }</td>
						</tr>
						<tr class="li_1">
						 <td align="right" width="18%" >申报年度：</td>
							<td   align="left">${proposal.statYear }</td>
							<td align="right" width="18%" >项目类别：</td>
							<td  align="left">${grant.zhCnGrantName }</td>
						</tr>
						<tr class="li_2">
						   <td align="right" width="18%" >项目状态：</td>
							<td  align="left">${cd.zhCnCaption }</td>
							<td align="right" width="18%" >受理编号：</td>
							<td   align="left">${proposal.prpNo }</td>
							
						</tr>
					</table>
					<div class="similar_content" style="overflow: auto;height: 250px;">
						<c:choose>
						<c:when test="${not empty param.sourceContent }">
							<pre>${param.sourceContent }</pre>
						</c:when>
						<c:otherwise>该项目没有项目内容信息</c:otherwise>
						</c:choose>
					</div>
				</div>
			</div>
			<div class="project_box02">
				<div class="project01">项目二</div>
				<div class="project_analysis">
					<table class="t_css" width="100%" border="0" cellpadding="0"
						cellspacing="1">
						<tr class="li_1">
							<td width="18%" align="right">项目名称：</td>
							<td colspan="3" align="left">${simProposal.zhTitle }</td>
						</tr>
						<tr class="li_2">
							<td align="right" width="18%" >申报单位：</td>
							<td colspan="3" align="left">${simOrg.name }</td>
						</tr>
						<tr class="li_1">
						 <td align="right" width="18%" >申报年度：</td>
							<td   align="left">${simProposal.statYear }</td>
							<td align="right" width="18%" >项目类别：</td>
							<td  align="left">${simGrant.zhCnGrantName }</td>
						</tr>
						<tr class="li_2">
						   <td align="right" width="18%" >项目状态：</td>
							<td  align="left">${simCd.zhCnCaption }</td>
							<td align="right" width="18%" >受理编号：</td>
							<td   align="left">${simProposal.prpNo }</td>
							
						</tr>
					</table>
					<div class="similar_content" style="overflow: auto;height: 250px;">
						<div id="targetContentDiv">
							<c:choose>
							<c:when test="${not empty param.targetContent }">
								<div id="targetContentDiv">
									<pre>${param.targetContent }</pre>
								</div>
							</c:when>
							<c:otherwise>该项目没有项目内容信息</c:otherwise>
							</c:choose>
						</div>
					</div>
				</div>
			</div>
			<div class="clear" style="height: 0px; overflow: hidden;"></div>
		</div>
	</div>
</body>
</html>
